<div class="edit-reply card">
  <div class="card-header">
    修改回帖 <span class="pull-right"><%= topic_title_tag(@topic) %></span>
  </div>
  <div class="card-body">
    <%= form_for [@topic, @reply], remote: true, tb: 'edit-reply' do |f| %>
      <%= render "shared/error_messages", target: @reply %>
      <%= render "/shared/editor_toolbar" %>
      <div class="form-group">
        <%= f.text_area :body, class: "topic-editor form-control", rows: 10 %>
      </div>
      <div class="form-group">
        <%= f.submit t("common.save"), class: "btn btn-primary col-xs-2 hide-ios", 'data-disable-with' => t("common.saving") %>
        <% if can? :destroy, @reply %>
        <%= link_to "删除",[@topic,@reply], class: "btn btn-danger", method: :delete, data: { confirm: "确定要删除此回复么？" } %>
        <% end %>
      </div>
    <% end %>
  </div>
</div>
<div class="card hide-ios">
  <div class="card-body">
    <%= render "/shared/editor_help_block" %>
  </div>
</div>
